﻿/*
功能描述:信道监视占用率，监视重点选中基站的信道占用率
编写时间:2010.11.29 14:00
编 写 人:qfkong
*/

/*打开信道占用率界面*/
function openXDZYL() {
    var url = 'ImpMonitorIndex_XDZYL_Index.htm';
    //OpenModalDialog(url, window.screen.width, window.screen.height, 'no');
    WindowFullScreenTitle(url, false, 'ImpMonitorIndex_XDZYL_Index');
}

/*打开视频窗口*/
function openVideo() {
    alert('视频窗口');
    var videoParm = Topo_ImpMonitorIndex.GetViedo().value;//获取打开视频字符串
    if (videoParm == "") {
        alert("请勾选视频通道!");
        return;
    }
    var countTemp = videoParm.split(' ').length - 1;
    if (countTemp > 16) {
        var cz = countTemp - 16;
        alert("当前已经选中" + countTemp + "个视频通道！请去掉" + cz + "个通道才能正常显示！");
        return;
    }
    var objShell = new ActiveXObject("wscript.shell"); //创建客户端程序执行对象 
    try {
        objShell.Run("C:\\视频客户端\\RemoteView.exe " + videoParm);
        //objShell.Run("F:\STAY_SOFT\CM-desk_Manager\PreViewClient.exe IP：通道：用户名：密码"); 
        //调用Run命令执行exe程序，参数是一个exe文件的路径(注:这个路径是客户端电脑上的已知路径)。 
        objShell = null;
    }
    catch (ex) {
        alert("请将文件下载到C:\\,并解压到该目录下!");
        window.open("http://192.168.129.15/web/视频客户端.rar", "", "");
    }
    return false;
}
/*打开配置界面*/
function selectTBS() {
    var url = 'ImpMonitorIndex_SelTBS.aspx';
    OpenModalDialog(url, '400', '620', 'no');
}
/*打开重点基站性能监视界面*/
function openTBS() {
    var url = 'ImpMonitorIndex_TBSXN_index.htm';
    //OpenWindow(url, '920', '555', 'no');
    WindowFullScreenTitle(url, false, 'ImpMonitorIndex_TBSXN_index_win');
}

function openTBSZYL() {
    var url = 'TBSChannelLinkIndex.htm';
    //OpenWindow(url, '920', '555', 'no');
    WindowFullScreenTitle(url, false, 'TBSChannelLinkIndex');
}

function openTBSMainChannel() {
    var url = 'TBSMainChannelIndex.htm';
    //OpenWindow(url, '920', '555', 'no');
    WindowFullScreenTitle(url, false, 'TBSMainChannelIndex_win');
}